<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改文档信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-excel-edit" th:object="${mappingExcelInfo}">
            <input name="excelId" th:field="*{excelId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">目标系统id：</label>
                <div class="col-sm-8">
                    <input name="targetSysId" th:field="*{targetSysId}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">目标系统代码：</label>
                <div class="col-sm-8">
                    <input name="targetSysCode" th:field="*{targetSysCode}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">目标系统名称：</label>
                <div class="col-sm-8">
                    <input name="targetSysName" th:field="*{targetSysName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">源系统id：</label>
                <div class="col-sm-8">
                    <input name="sourceSysId" th:field="*{sourceSysId}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">源系统代码：</label>
                <div class="col-sm-8">
                    <input name="sourceSysCode" th:field="*{sourceSysCode}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">源系统名称：</label>
                <div class="col-sm-8">
                    <input name="sourceSysName" th:field="*{sourceSysName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">文档名称：</label>
                <div class="col-sm-8">
                    <textarea name="excelFilename" class="form-control" required>[[*{excelFilename}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">处理状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box">
                        <input type="radio" name="parseStatus" value="" required>
                        <label th:for="parseStatus" th:text="未知"></label>
                    </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">错误信息：</label>
                <div class="col-sm-8">
                    <textarea name="errorMsg" class="form-control">[[*{errorMsg}]]</textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "mapping/excel";
        $("#form-excel-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-excel-edit').serialize());
            }
        }
    </script>
</body>
</html>